﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QMERP.Domain.Dtos
{
    public class CustomerResponse
    {
        public long Id { get; set; }
        /// <summary>
        /// 父Id
        /// </summary>
        public long? PId { get; set; }
        public string Code { get; set; } = "";
        public string Name { get; set; } = "";
        public string? ShortName { get; set; } = "";
        public string? Address { get; set; }
        /// <summary>
        /// 账户地址
        /// </summary>
        public string? BillingAddress { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }
        // <summary>
        /// 传真
        /// </summary>
        public string? Fax { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string? Email { get; set; }
        /// <summary>
        /// 地区代码
        /// </summary>
        public string? AreaCode { get; set; }
        /// <summary>
        /// 交易代码
        /// </summary>
        public string? TradeCode { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        public string? PostCode { get; set; }
        /// <summary>
        /// 银行
        /// </summary>
        public string? Bank { get; set; }
        /// <summary>
        /// 银行账号
        /// </summary>
        public string? BankAccount { get; set; }
        /// <summary>
        /// 免税代码
        /// </summary>
        public string? TaxCode { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? TaxRate { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public string? PayCode { get; set; }
        /// <summary>
        /// 货币代码
        /// </summary>
        public string? CurrencyCode { get; set; }
        /// <summary>
        /// 代表人
        /// </summary>
        public string? Signer { get; set; }
        /// <summary>
        /// 条形码
        /// </summary>
        public string? BarCode { get; set; }
        /// <summary>
        /// 关系类型
        /// </summary>
        public string? ContactType { get; set; }
        /// <summary>
        /// 信用等级
        /// </summary>
        public string? CreditGrade { get; set; }
        /// <summary>
        /// 信用货币
        /// </summary>
        public decimal? CreditMoney { get; set; }
        /// <summary>
        /// 特殊折扣
        /// </summary>
        public int? SpecialDiscount { get; set; }
        /// <summary>
        /// 参考代码
        /// </summary>
        public string? ReferenceCode { get; set; }
        /// <summary>
        /// 客户转换代码
        /// </summary>
        public string? ConvertCusCode { get; set; }
        /// <summary>
        /// 承运方式
        /// </summary>
        public string? TransferWayCode { get; set; }
        /// <summary>
        /// 货税代码
        /// </summary>
        public string? FreightTaxCode { get; set; }
        /// <summary>
        /// 显示价格
        /// </summary>
        public bool IsShowPrice { get; set; } = false;
        /// <summary>
        /// 对账代码
        /// </summary>
        public string? AccountCode { get; set; }

        public long? OrganizationId { get; set; }
        public long CreatedBy { get; set; }
        public string CreatedByName { get; set; } = "";
        public DateTime CreatedOn { get; set; } = DateTime.Now;
        public long? UpdatedBy { get; set; }
        public string? UpdatedByName { get; set; }
        public DateTime? UpdatedOn { get; set; }
    }
}
